package com.fruits.login.dao;

import com.fruits.login.model.HallUrl;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HallUrlDAO {

    /**
     * 读取所有开启的大厅ip+port
     */
    @Select("select id,ip,port from hallurl where isOpen = 1")
    List<HallUrl> findAllHallUrl();

    @Select("select ip from hallurl")
    List<String> findAllHallIp();


    @Select("select id,ip,httpPort from hallurl where isOpen = 1")
    List<HallUrl> findAllHallHttpUrl();
}
